<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>

<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<center>
	<form action="j_spring_security_check" method="post">
		<fieldset style="width: 40%; padding: 25px 30px 25px 30px;">
			<legend class="formElement">Logowanie</legend>

			<div class="formElement" style="color:red;">${error}</div>

			<div class="formElement">

				<label for="j_username">Username</label> <input id="j_username"
					name="j_username" type="text" />
			</div>

			<div class="formElement">
				<label for="j_password">Password</label> <input id="j_password"
					name="j_password" type="password" />
			</div>
			<div class="formElement">
				<input type="submit" value="Login" />
			</div>
		</fieldset>
	</form>
</center>